import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 流程列表-分页查询
export function list(params){
  return axios({
    url: assessCheckApi.list,
    method:'get',
    params:{...params},
    url_2:'outside',
  })
}
// 流程页面-通过id删除
export function deletePage(params){
  return axios({
    url: assessCheckApi.deletePage,
    method:'delete',
    params:{...params},
    url_2:'outside',
  })
}
// 流程页面-批量删除
export function deleteBatch(params){
  return axios({
    url: assessCheckApi.deleteBatch,
    method:'delete',
    params:{...params},
    url_2:'outside',
  })
}
// 流程页面-添加
export function addPage(data){
  return axios({
    url: assessCheckApi.addPage,
    method:'post',
    data:data,
    url_2:'outside',
  })
}
// 流程页面-编辑
export function edit(data){
  return axios({
    url: assessCheckApi.edit,
    method:'put',
    data:{...data},
    url_2:'outside',
  })
}
